package sudroid;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class DataStructureUtil
{
  public static boolean checkRange(Collection<?> paramCollection, int paramInt)
  {
    if ((!isEmptyOrNull(paramCollection)) && (paramInt >= 0))
    {
      int i = paramCollection.size();
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(Map<?, ?> paramMap, int paramInt)
  {
    if ((!isEmptyOrNull(paramMap)) && (paramInt >= 0))
    {
      int i = paramMap.size();
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(byte[] paramArrayOfByte, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfByte)) && (paramInt >= 0))
    {
      int i = paramArrayOfByte.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(char[] paramArrayOfChar, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfChar)) && (paramInt >= 0))
    {
      int i = paramArrayOfChar.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(double[] paramArrayOfDouble, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfDouble)) && (paramInt >= 0))
    {
      int i = paramArrayOfDouble.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(float[] paramArrayOfFloat, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfFloat)) && (paramInt >= 0))
    {
      int i = paramArrayOfFloat.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(int[] paramArrayOfInt, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfInt)) && (paramInt >= 0))
    {
      int i = paramArrayOfInt.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(long[] paramArrayOfLong, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfLong)) && (paramInt >= 0))
    {
      int i = paramArrayOfLong.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(Object[] paramArrayOfObject, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfObject)) && (paramInt >= 0))
    {
      int i = paramArrayOfObject.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static boolean checkRange(short[] paramArrayOfShort, int paramInt)
  {
    if ((!isEmptyOrNull(paramArrayOfShort)) && (paramInt >= 0))
    {
      int i = paramArrayOfShort.length;
      if (paramInt >= i);
    }
    for (int j = 1; ; j = 0)
      return j;
  }

  public static <T> String collectionToString(Collection<T> paramCollection)
  {
    StringBuilder localStringBuilder1 = new StringBuilder();
    if (paramCollection == null)
      StringBuilder localStringBuilder2 = localStringBuilder1.append("null").append("\n");
    int i;
    Iterator localIterator;
    while (true)
    {
      return localStringBuilder1.toString();
      StringBuilder localStringBuilder3 = localStringBuilder1.append("{\n");
      i = 1;
      localIterator = paramCollection.iterator();
      if (localIterator.hasNext())
        break;
      StringBuilder localStringBuilder4 = localStringBuilder1.append("\n}\n");
    }
    Object localObject = (Object)localIterator.next();
    if (i != 0)
      if (i != 0)
        i = 0;
    while (true)
    {
      StringBuilder localStringBuilder5 = localStringBuilder1.append("\t").append(localObject).append("\t");
      String str = localObject.getClass().getName();
      StringBuilder localStringBuilder6 = localStringBuilder5.append(str);
      break;
      i = 1;
      continue;
      StringBuilder localStringBuilder7 = localStringBuilder1.append("\n");
    }
  }

  public static <T> void fill(List<T> paramList, T[] paramArrayOfT)
  {
    AssertUtil.checkNull(paramList);
    AssertUtil.checkNull(paramArrayOfT);
    int i = paramArrayOfT.length;
    int j = paramList.size();
    if (i != j)
      throw new IllegalArgumentException("dest's length doesn't equal src's size");
    int k = 0;
    int m = paramArrayOfT.length;
    while (true)
    {
      if (k >= m)
        return;
      Object localObject = paramList.get(k);
      paramArrayOfT[k] = localObject;
      k += 1;
    }
  }

  public static <T> void fill(T[] paramArrayOfT, List<T> paramList)
  {
    AssertUtil.checkNull(paramArrayOfT);
    AssertUtil.checkNull(paramList);
    paramList.clear();
    int i = 0;
    int j = paramArrayOfT.length;
    while (true)
    {
      if (i >= j)
        return;
      T ? = paramArrayOfT[i];
      boolean bool = paramList.add(?);
      i += 1;
    }
  }

  public static void fillArrayWithNull(Object[] paramArrayOfObject)
  {
    if (isEmptyOrNull(paramArrayOfObject))
      fill(paramArrayOfObject, null);
  }

  public static boolean isEmptyOrNull(Collection<?> paramCollection)
  {
    if ((paramCollection == null) || (paramCollection.isEmpty()));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(Map<?, ?> paramMap)
  {
    if ((paramMap == null) || (paramMap.isEmpty()));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(byte[] paramArrayOfByte)
  {
    if ((paramArrayOfByte == null) || (paramArrayOfByte.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(char[] paramArrayOfChar)
  {
    if ((paramArrayOfChar == null) || (paramArrayOfChar.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(double[] paramArrayOfDouble)
  {
    if ((paramArrayOfDouble == null) || (paramArrayOfDouble.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(float[] paramArrayOfFloat)
  {
    if ((paramArrayOfFloat == null) || (paramArrayOfFloat.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(int[] paramArrayOfInt)
  {
    if ((paramArrayOfInt == null) || (paramArrayOfInt.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(long[] paramArrayOfLong)
  {
    if ((paramArrayOfLong == null) || (paramArrayOfLong.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(Object[] paramArrayOfObject)
  {
    if ((paramArrayOfObject == null) || (paramArrayOfObject.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEmptyOrNull(short[] paramArrayOfShort)
  {
    if ((paramArrayOfShort == null) || (paramArrayOfShort.length == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isNull(Object paramObject)
  {
    if (paramObject == null);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static <K, V> String mapToString(Map<K, V> paramMap)
  {
    StringBuilder localStringBuilder1 = new StringBuilder();
    if (paramMap == null)
      StringBuilder localStringBuilder2 = localStringBuilder1.append("null").append("\n");
    int i;
    Iterator localIterator;
    while (true)
    {
      return localStringBuilder1.toString();
      StringBuilder localStringBuilder3 = localStringBuilder1.append("{\n");
      i = 1;
      localIterator = paramMap.entrySet().iterator();
      if (localIterator.hasNext())
        break;
      StringBuilder localStringBuilder4 = localStringBuilder1.append("\n}\n");
    }
    Map.Entry localEntry = (Map.Entry)localIterator.next();
    if (i != 0)
      if (i != 0)
        i = 0;
    while (true)
    {
      Object localObject1 = localEntry.getKey();
      Object localObject2 = localEntry.getValue();
      StringBuilder localStringBuilder5 = localStringBuilder1.append("\t").append(localObject1).append(" ---- ").append(localObject2).append("\t");
      String str1 = localObject1.getClass().getName();
      StringBuilder localStringBuilder6 = localStringBuilder5.append(str1).append(" ---- ");
      String str2 = localObject2.getClass().getName();
      StringBuilder localStringBuilder7 = localStringBuilder6.append(str2);
      break;
      i = 1;
      continue;
      StringBuilder localStringBuilder8 = localStringBuilder1.append("\n");
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.DataStructureUtil
 * JD-Core Version:    0.6.0
 */